how to factorise a quadratic by completing the square